<template>
  <div class="home">
    <h3>我是Home</h3>
    <!-- <img alt="Vue logo" src="../assets/logo.png"> -- {{ $store.state.Zhang.name }}
    <button @click="change">修改</button> -->
  </div>
</template>

<script>
import axios from '@/http'
// import { axios1, axios2 } from '@/http'
import { userLogin } from '@/api/login'
export default {
  name: "Home",
  created() {
    userLogin({ id: 222 }).then(res => {
      console.log(res)
    })


    // axios.get("/abc", {
    //   params: {
    //     id: 111
    //   }
    // }).then((res) => {
    //   console.log(res);
    // });

    // axios2.get("/def").then((res) => {
    //   console.log(res);
    // });

    // /def
  },
  methods: {
    change() {
      this.$store.commit("Zhang/changeName");
    },
  },
};
</script>
